package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Customer;
import cn.tedu.antconlonysever.contract.pojo.vo.CustomerListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.CustomerStandardVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface ICustomerRepository {
    int insert(Customer customer);
    int insertBatch(List<Customer> customerList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(Customer customer);
    int count();
    int countNo(String no);
    int contactNoNotId(@Param("id")Long id, @Param("no") String no);
    CustomerStandardVO getStandardById(Long id);
    PageData<CustomerListVO> list(Integer pageNum, Integer pageSize);
}
